.fb-comments, 
.fb-like-box,
.fb-comments span, 
.fb-like-box span,
.fb-comments span iframe[style], 
.fb-like-box span iframe[style]{
    width: 100% !important;
}


#ajax-loading{
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 45%;
    left: 45%;
    z-index: 99999;
    background-color: #fff;
    display: none;
}

.jGrowl-notification{
    border-radius: 0px !important;
    width: 300px !important;
    font-weight: bold !important;
    &.success{
        border: 2px solid darken(@brand-success, 15%);
        background-color: darken(@brand-success, 0%) !important;
    }
    &.info{
        border: 2px solid darken(@brand-info, 15%); 
        background-color: darken(@brand-info, 0%) !important; 
    }
    &.warning{
        border: 2px solid darken(@brand-warning, 15%);
        background-color: darken(@brand-warning, 0%) !important;     
    }
    &.error{
        border: 2px solid darken(@brand-danger, 15%);
        background-color: darken(@brand-danger, 0%) !important;    
    }  
}
/* tooltip, popover
-------------------------------------------------- */
[rel=tooltip],
[rel=popover]{
    display: inline-block;
}


/* text
-------------------------------------------------- */
.decoration-none,
.decoration-none:hover,
.decoration-none:focus,{
    text-decoration: none; 
}
 
/* Margin, padding
-------------------------------------------------- */
.margintop5 {
    margin-top: 5px
}
.margintop10 {
    margin-top: 10px
}
.margintop15 {
    margin-top: 15px
}  
.margintop20 {
    margin-top: 20px
} 

/* Key scaffolding
-------------------------------------------------- */

body {
    position: relative; /* For scrollyspy */
    padding-top: 34px; /* Account for fixed navbar */
}
      
/* Icons
-------------------------------------------------- */
.icon-google-plus-sign{ 
    color: @brand-danger;
    &:hover{
        color: darken(@brand-danger, 10%);    
    }
}   
.icon-facebook-sign{ 
    color: @brand-primary;
    &:hover{
        color: darken(@brand-primary, 10%);    
    }
}  
/* Form
-------------------------------------------------- */
span.required{color: @brand-danger;}
form.my-form{
    select.input-small {
        min-height: @input-height-small;
        padding: 5px 5px 5px 10px;
        font-size: @font-size-small;
        height: 30px;
    }
    input[type="file"] {
        height: 30px;
    }
    
    
    label{
        font-weight: normal;
        font-size: @font-size-small;
        &.control-label{
            font-weight: 500;
            font-size: @font-size-base;    
        }
    } 
    div.errorMessage{
        color: @brand-danger;
        font-size: @font-size-mini;
        margin-top: 2px;  
    }

    div.error{
        select,
        textarea,    
        input{
            border-color: @brand-danger; 
            &:hover,
            &:focus{
                border-color: darken(@brand-danger, 20%);
            }
        }   
    }
    div.success{
        select,
        textarea,    
        input{
            border-color: @brand-success; 
            &:hover,
            &:focus{
                border-color: darken(@brand-success, 20%);
            }
        }   
    }
    input.input-captcha{
        width: 50px;
        display: inline-block;
    }
    img.captcha_img{
        border: 1px solid lighten(@gray-light, 20%);
        cursor: pointer;
        height: 30px;
        margin-right: 4px;
    }
}




/* Top nav and header
-------------------------------------------------- */

.my-navbar-top {
    background-color: @gray-darker;
    margin: 0;
    padding: 0px;
    .navbar-brand {
        color: @my-white-color;
        line-height: 18px;
        padding: 6px 10px 10px;
    }
    .navbar-nav {
        color: @gray-dark;
        > li{
            > a {
                color: darken(@my-white-color, 15%);
                line-height: 18px;
                padding: 8px 10px;
                &:hover{
                    color: @my-white-color;    
                }  
            }
        }
        > .active{
            a.dropdown-toggle, a.dropdown-toggle:hover{
                color: @my-white-color;
                background-color: darken(@brand-primary, 20%);
            }   
        }
        
        // Caret should match text color on hover
        > .dropdown > a:hover .caret,
        > .dropdown > a:focus .caret {
            border-top-color: @my-white-color;
            border-bottom-color: @my-white-color;
        }

        // hover on li and li dropdown open
        &.my-navbar-left li:hover, 
        > li.open > a,
        > li.open > a:hover,
        > li.open > a:focus {
            background-color: darken(@brand-primary, 20%);
            color: @my-white-color;
        }
        
        &.my-navbar-left{
            .dropdown-menu{
                li{
                    a{
                        color: @my-white-color;    
                    }
                }    
            } 
        }


        
        > li#chaotienganh{
            &:hover,
            &.open > a,
            &.open > a:hover,
            &.open > a:focus {
                background-color: darken(@brand-danger, 10%);
            }
            // submenu hover
            .dropdown-menu > li > a:hover,
            .dropdown-menu > li > a:focus{
                #gradient > .vertical(darken(@brand-danger, 10%), darken(@brand-danger, 10%));
            }
        }
        > li#hangve{
            &:hover,
            &.open > a,
            &.open > a:hover,
            &.open > a:focus {
                background-color: darken(@brand-success, 10%);
            }
            .dropdown-menu > li > a:hover,
            .dropdown-menu > li > a:focus{
                #gradient > .vertical(darken(@brand-success, 10%), darken(@brand-success, 10%));
            }
            
        }
        > li#hehe{
            @hehe-color-tab: darken(@brand-success, 20%);
            &:hover,
            &.open > a,
            &.open > a:hover,
            &.open > a:focus {
                background-color: @hehe-color-tab;
            }
            .dropdown-menu{
                padding: 0px;
                border: 0px solid @hehe-color-tab;
                li{
                    a{
                        background-color: @hehe-color-tab;    
                    }
                    a:hover,
                    a:focus{
                       #gradient > .vertical(lighten(@hehe-color-tab, 20%), lighten(@hehe-color-tab, 20%));
                    }
                }    
            }

        }
        
        > .dropdown > a .caret {
            border-top-color: darken(@my-white-color, 15%);
            border-bottom-color: darken(@my-white-color, 15%);
        }
        > .open > a .caret,
        > .open > a:hover .caret,
        > .open > a:focus .caret {
            border-top-color: @my-white-color;
            border-bottom-color: @my-white-color;
        }
        
        // dropdown block login
        .my-dropdown-login{
            min-width: 220px;
            //display: block;
            .my-openid{
                a{
                    text-decoration: none;
                    i[class^=icon-]{
                        font-size: 30px;    
                    }
                } 
                .with{
                    display: inline-block;
                    font-size: @font-size-small;
                    color: @gray;
                    text-align: center;
                    width: 38px;
                    padding-left: 2px;
                    vertical-align: 6px;
                }
            }
            hr{
                margin: 10px 0px;
            }
            
            ul.my-link{
                list-style-type:none;
                margin: 0;
                li{
                    display: inline;   
                }
            } 
        }

    }
    
    //top nabar button toggle 
    .navbar-toggle {
        border: none;
        border-left: 1px solid @gray-dark;
        padding: 10px 14px;
        right: 0px;
        top: 0px;
        &:hover,
        &:focus {
            background-color: @gray-dark;
        }
/*        &.collapsed{
            background-color: @gray;   
        } */
    }
}

 
/* Docs pages and sections
-------------------------------------------------- */

/* Page headers */
#my-header {
    padding: 10px 0;
    font-size: 16px;
    text-align: center;
/*    #gradient > .vertical(darken(@brand-primary, 22%), darken(@brand-primary, 20%));*/
    background-color: darken(@brand-primary, 20%);
    border-bottom: 1px solid darken(@brand-primary, 30%);
    text-shadow: 1px 1px 1px @gray;
   
    .site-name{
        text-align: left;
    }
    .site-links{
        li{
            a{
                 color: #fff;
                 //font-weight: bold;
                 margin: 0px;    
            }
            &.image{
                a{
                    border-bottom: 3px solid lighten(@brand-danger, 10%);
                    &:hover,
                    &:focus{
                        background-color: darken(@brand-danger, 20%);;
                    } 
                }
            }
            &.video{
                a{
                    border-bottom: 3px solid lighten(@brand-success, 10%);
                    &:hover,
                    &:focus{
                        background-color: darken(@brand-success, 20%);;
                    } 
                }
            }
            &.joke{
                a{
                    border-bottom: 3px solid lighten(@brand-warning, 10%);
                    &:hover,
                    &:focus{
                        background-color: darken(@brand-warning, 20%);;
                    } 
                }
            }
        }   
    } 
    
    h1, h3 {
        color: @my-white-color;
        font-size: 30px;
        margin: 0px;
    }
    p {
        font-weight: 300;
        line-height: 1.5;
    }
}


#social-buttons {
    background-color: #F5F5F5;
    border-bottom: 1px solid #DDDDDD;
    border-top: 1px solid #FFFFFF;
    padding: 15px 0;
    height: 50px;
    text-align: center;
    .share{
        .fb-like{
            width: 130px;
        }
    }
}

/* Docs sidebar
-------------------------------------------------- */

/* By default it's not affixed in mobile views, so undo that */
.my-sidebar.affix {
  position: static;
}

/* First level of nav */
.my-sidenav {
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top: 15px;
  padding-bottom: 15px;
  text-shadow: 0 1px 0 #fff;
  background-color: #f5f5f5;
}

/* All levels of nav */
.my-sidebar .nav > li > a {
  display: block;
  color: #666;
  padding: 4px 20px;
}
.my-sidebar .nav > li > a:hover,
.my-sidebar .nav > li > a:focus {
  text-decoration: none;
  border-right: 1px solid #d5d5d5;
}
.my-sidebar .nav > .active > a,
.my-sidebar .nav > .active:hover > a,
.my-sidebar .nav > .active:focus > a {
  font-weight: 500;
  color: #b94a48;
  background-color: transparent;
  border-right: 1px solid #b94a48;
}

/* Nav: second level (shown on .active) */
.my-sidebar .nav .nav {
  display: none;
  margin-bottom: 5px;
}
.my-sidebar .nav > .active > ul {
  display: block;
}
.my-sidebar .nav .nav > li > a {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 30px;
  font-size: 90%;
}



.my-pagination{
    text-align: right;
    li.page{
        display: none;
        &.active{
            display: inline;
        }
    }
    li.last{
        display: none; 
    }
    li a{
        color: #FFFFFF; 
        cursor: pointer;            
        margin-bottom: 0;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
            
    }
    
    li.next{
        a{
            font-size: 18px;
            padding: 12px 14px;
            background-color: darken(@brand-primary, 10%);
            
            &:hover{
                background-color: @brand-primary;    
            } 
        }
    }
    
    li.active{
        a{
            min-width: 50px;
            font-size: 16px;
            padding: 8px 10px;
            background-color: darken(@brand-success, 10%);
            color: #FFFFFF;
            
            &:hover{
                background-color: @brand-success;    
            } 
        }
    }  
    
    li.previous{
        a{
            min-width: 40px;
            font-size: 14px;
            padding: 6px 8px;
            background-color: darken(@brand-danger, 10%);
            color: #FFFFFF;
            &:hover{
                background-color: @brand-danger;    
            } 
        }
    } 
    
    li.first{
        a{
            min-width: 36px;
            font-size: 14px;
            padding: 4px 6px;
            background-color: darken(@brand-warning, 10%);
            color: #FFFFFF;
            &:hover{
                background-color: @brand-warning;    
            } 
        }
    } 
}

 
/* Footer
-------------------------------------------------- */

.my-footer {
    padding-top: 40px;
    padding-bottom: 30px;
    margin-top: 100px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    p {
        margin-bottom: 0;
        color: #777;
    }
    .footer-links {
        margin: 10px 0;
        li {
            display: inline;
            padding: 0 2px;
            &:first-child {
                padding-left: 0;
            }
        }
    }
}

/* Hide the top link initially */
.my-top {
  display: none;
}


/* Responsive variations
-------------------------------------------------- */

/* Phone only < 768 */
@media screen and (max-width: @screen-phone-max) {
    .my-navbar-collapse{
        background-color: @gray-dark;
        ul{     
            li{
                
                
                ul.dropdown-menu{
                    display: block;
                    min-width: dropdown-menu;
                    height: auto;
                    width: 100%;
                }
            }
        }
        
        

    }
    
    
    .my-navbar-right{
        display: none;
    }
}

/* 768 <= Tablets only < 992 */
@media screen and (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
    .container {
        max-width: 100%;
    }

/*  [class*="col-lg-"]*/
    .col-lg-9,
    .col-lg-3
    {
        width: 100%;    
    }

  // Reaffix the fixed sidebar/
  .my-sidebar.affix {
    position: fixed; // Undo the static from mobile-first approach/
    top: 50px;
    width: 160px;
  }

  // Back to top link
  .my-top {
    display: block;
    float: left;
    padding: 7px 15px;
    font-weight: 500;
    color: #999;
    background-color: #eee;
  }
  .my-top:hover {
    color: #fff;
    text-decoration: none;
    background-color: #999;
  }
  .my-top.affix {
    position: fixed;
    right:  15px;
    bottom: 15px;
  }

  // Show the side nav
  .my-sidebar {
    display: block;
  }

}

/* 992 <= Desktops only < 1200 */
@media screen  and (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {

  /* Widen the fixed sidebar */
  .my-sidebar.affix {
    width: 213px;
  }


}

/* Large desktops >= 1200 */
@media screen and (min-width: @screen-large-desktop) {

  /* Widen the fixed sidebar again */
  .my-sidebar.affix {
    width: 270px;
  }

}
